3.40 \(\int \frac{d+e x+f x^2+g x^3+h x^4+i x^5}{\left (a+b x^2+c x^4\right )^2} \, dx\)

Optimal. Leaf size=468 \[ \frac{x^2 \left (-\left (-2 a c i+b^2 i-b c g+2 c^2 e\right )\right )-b (a i+c e)+2 a c g}{2 c \left (b^2-4 a c\right ) \left (a+b x^2+c x^4\right )}+\frac{x \left (x^2 (a b h-2 a c f+b c d)-a b f-2 a (c d-a h)+b^2 d\right )}{2 a \left (b^2-4 a c\right ) \left (a+b x^2+c x^4\right )}+\frac{\tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{b-\sqrt{b^2-4 a c}}}\right ) \left (\frac{b^2 (c d-a h)+4 a b c f-4 a c (a h+3 c d)}{\sqrt{b^2-4 a c}}+a b h-2 a c f+b c d\right )}{2 \sqrt{2} a \sqrt{c} \left (b^2-4 a c\right ) \sqrt{b-\sqrt{b^2-4 a c}}}+\frac{\tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{\sqrt{b^2-4 a c}+b}}\right ) \left (-\frac{b^2 (c d-a h)+4 a b c f-4 a c (a h+3 c d)}{\sqrt{b^2-4 a c}}+a b h-2 a c f+b c d\right )}{2 \sqrt{2} a \sqrt{c} \left (b^2-4 a c\right ) \sqrt{\sqrt{b^2-4 a c}+b}}+\frac{\tanh ^{-1}\left (\frac{b+2 c x^2}{\sqrt{b^2-4 a c}}\right ) (2 a i-b g+2 c e)}{\left (b^2-4 a c\right )^{3/2}} \]

[Out]

(x*(b^2*d - a*b*f - 2*a*(c*d - a*h) + (b*c*d - 2*a*c*f + a*b*h)*x^2))/(2*a*(b^2
- 4*a*c)*(a + b*x^2 + c*x^4)) + (2*a*c*g - b*(c*e + a*i) - (2*c^2*e - b*c*g + b^
2*i - 2*a*c*i)*x^2)/(2*c*(b^2 - 4*a*c)*(a + b*x^2 + c*x^4)) + ((b*c*d - 2*a*c*f
+ a*b*h + (4*a*b*c*f + b^2*(c*d - a*h) - 4*a*c*(3*c*d + a*h))/Sqrt[b^2 - 4*a*c])
*ArcTan[(Sqrt[2]*Sqrt[c]*x)/Sqrt[b - Sqrt[b^2 - 4*a*c]]])/(2*Sqrt[2]*a*Sqrt[c]*(
b^2 - 4*a*c)*Sqrt[b - Sqrt[b^2 - 4*a*c]]) + ((b*c*d - 2*a*c*f + a*b*h - (4*a*b*c
*f + b^2*(c*d - a*h) - 4*a*c*(3*c*d + a*h))/Sqrt[b^2 - 4*a*c])*ArcTan[(Sqrt[2]*S
qrt[c]*x)/Sqrt[b + Sqrt[b^2 - 4*a*c]]])/(2*Sqrt[2]*a*Sqrt[c]*(b^2 - 4*a*c)*Sqrt[
b + Sqrt[b^2 - 4*a*c]]) + ((2*c*e - b*g + 2*a*i)*ArcTanh[(b + 2*c*x^2)/Sqrt[b^2
- 4*a*c]])/(b^2 - 4*a*c)^(3/2)

_______________________________________________________________________________________

Rubi [A]  time = 3.87628, antiderivative size = 468, normalized size of antiderivative = 1., number of steps used = 10, number of rules used = 9, integrand size = 40, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.225 \[ \frac{x^2 \left (-\left (-2 a c i+b^2 i-b c g+2 c^2 e\right )\right )-b (a i+c e)+2 a c g}{2 c \left (b^2-4 a c\right ) \left (a+b x^2+c x^4\right )}+\frac{x \left (x^2 (a b h-2 a c f+b c d)-a b f-2 a (c d-a h)+b^2 d\right )}{2 a \left (b^2-4 a c\right ) \left (a+b x^2+c x^4\right )}+\frac{\tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{b-\sqrt{b^2-4 a c}}}\right ) \left (\frac{b^2 (c d-a h)+4 a b c f-4 a c (a h+3 c d)}{\sqrt{b^2-4 a c}}+a b h-2 a c f+b c d\right )}{2 \sqrt{2} a \sqrt{c} \left (b^2-4 a c\right ) \sqrt{b-\sqrt{b^2-4 a c}}}+\frac{\tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{\sqrt{b^2-4 a c}+b}}\right ) \left (-\frac{b^2 (c d-a h)+4 a b c f-4 a c (a h+3 c d)}{\sqrt{b^2-4 a c}}+a b h-2 a c f+b c d\right )}{2 \sqrt{2} a \sqrt{c} \left (b^2-4 a c\right ) \sqrt{\sqrt{b^2-4 a c}+b}}+\frac{\tanh ^{-1}\left (\frac{b+2 c x^2}{\sqrt{b^2-4 a c}}\right ) (2 a i-b g+2 c e)}{\left (b^2-4 a c\right )^{3/2}} \]

Antiderivative was successfully verified.

[In]  Int[(d + e*x + f*x^2 + g*x^3 + h*x^4 + i*x^5)/(a + b*x^2 + c*x^4)^2,x]

[Out]

(x*(b^2*d - a*b*f - 2*a*(c*d - a*h) + (b*c*d - 2*a*c*f + a*b*h)*x^2))/(2*a*(b^2
- 4*a*c)*(a + b*x^2 + c*x^4)) + (2*a*c*g - b*(c*e + a*i) - (2*c^2*e - b*c*g + b^
2*i - 2*a*c*i)*x^2)/(2*c*(b^2 - 4*a*c)*(a + b*x^2 + c*x^4)) + ((b*c*d - 2*a*c*f
+ a*b*h + (4*a*b*c*f + b^2*(c*d - a*h) - 4*a*c*(3*c*d + a*h))/Sqrt[b^2 - 4*a*c])
*ArcTan[(Sqrt[2]*Sqrt[c]*x)/Sqrt[b - Sqrt[b^2 - 4*a*c]]])/(2*Sqrt[2]*a*Sqrt[c]*(
b^2 - 4*a*c)*Sqrt[b - Sqrt[b^2 - 4*a*c]]) + ((b*c*d - 2*a*c*f + a*b*h - (4*a*b*c
*f + b^2*(c*d - a*h) - 4*a*c*(3*c*d + a*h))/Sqrt[b^2 - 4*a*c])*ArcTan[(Sqrt[2]*S
qrt[c]*x)/Sqrt[b + Sqrt[b^2 - 4*a*c]]])/(2*Sqrt[2]*a*Sqrt[c]*(b^2 - 4*a*c)*Sqrt[
b + Sqrt[b^2 - 4*a*c]]) + ((2*c*e - b*g + 2*a*i)*ArcTanh[(b + 2*c*x^2)/Sqrt[b^2
- 4*a*c]])/(b^2 - 4*a*c)^(3/2)

_______________________________________________________________________________________

Rubi in Sympy [F(-1)]  time = 0., size = 0, normalized size = 0. \[ \text{Timed out} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  rubi_integrate((i*x**5+h*x**4+g*x**3+f*x**2+e*x+d)/(c*x**4+b*x**2+a)**2,x)

[Out]

Timed out

_______________________________________________________________________________________

Mathematica [A]  time = 5.20845, size = 524, normalized size = 1.12 \[ \frac{1}{4} \left (\frac{2 \left (a^2 (b i-2 c (g+x (h+i x)))+a \left (b^2 i x^2+b c (e+x (f-x (g+h x)))+2 c^2 x (d+x (e+f x))\right )-b c d x \left (b+c x^2\right )\right )}{a c \left (4 a c-b^2\right ) \left (a+b x^2+c x^4\right )}+\frac{\sqrt{2} \tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{b-\sqrt{b^2-4 a c}}}\right ) \left (b \left (c d \sqrt{b^2-4 a c}+a h \sqrt{b^2-4 a c}+4 a c f\right )-2 a c \left (f \sqrt{b^2-4 a c}+2 a h+6 c d\right )+b^2 (c d-a h)\right )}{a \sqrt{c} \left (b^2-4 a c\right )^{3/2} \sqrt{b-\sqrt{b^2-4 a c}}}+\frac{\sqrt{2} \tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{\sqrt{b^2-4 a c}+b}}\right ) \left (b \left (c d \sqrt{b^2-4 a c}+a h \sqrt{b^2-4 a c}-4 a c f\right )+2 a c \left (-f \sqrt{b^2-4 a c}+2 a h+6 c d\right )+b^2 (a h-c d)\right )}{a \sqrt{c} \left (b^2-4 a c\right )^{3/2} \sqrt{\sqrt{b^2-4 a c}+b}}+\frac{2 \log \left (\sqrt{b^2-4 a c}-b-2 c x^2\right ) (-2 a i+b g-2 c e)}{\left (b^2-4 a c\right )^{3/2}}+\frac{2 \log \left (\sqrt{b^2-4 a c}+b+2 c x^2\right ) (2 a i-b g+2 c e)}{\left (b^2-4 a c\right )^{3/2}}\right ) \]

Antiderivative was successfully verified.

[In]  Integrate[(d + e*x + f*x^2 + g*x^3 + h*x^4 + i*x^5)/(a + b*x^2 + c*x^4)^2,x]

[Out]

((2*(-(b*c*d*x*(b + c*x^2)) + a^2*(b*i - 2*c*(g + x*(h + i*x))) + a*(b^2*i*x^2 +
 2*c^2*x*(d + x*(e + f*x)) + b*c*(e + x*(f - x*(g + h*x))))))/(a*c*(-b^2 + 4*a*c
)*(a + b*x^2 + c*x^4)) + (Sqrt[2]*(b^2*(c*d - a*h) - 2*a*c*(6*c*d + Sqrt[b^2 - 4
*a*c]*f + 2*a*h) + b*(c*Sqrt[b^2 - 4*a*c]*d + 4*a*c*f + a*Sqrt[b^2 - 4*a*c]*h))*
ArcTan[(Sqrt[2]*Sqrt[c]*x)/Sqrt[b - Sqrt[b^2 - 4*a*c]]])/(a*Sqrt[c]*(b^2 - 4*a*c
)^(3/2)*Sqrt[b - Sqrt[b^2 - 4*a*c]]) + (Sqrt[2]*(b^2*(-(c*d) + a*h) + 2*a*c*(6*c
*d - Sqrt[b^2 - 4*a*c]*f + 2*a*h) + b*(c*Sqrt[b^2 - 4*a*c]*d - 4*a*c*f + a*Sqrt[
b^2 - 4*a*c]*h))*ArcTan[(Sqrt[2]*Sqrt[c]*x)/Sqrt[b + Sqrt[b^2 - 4*a*c]]])/(a*Sqr
t[c]*(b^2 - 4*a*c)^(3/2)*Sqrt[b + Sqrt[b^2 - 4*a*c]]) + (2*(-2*c*e + b*g - 2*a*i
)*Log[-b + Sqrt[b^2 - 4*a*c] - 2*c*x^2])/(b^2 - 4*a*c)^(3/2) + (2*(2*c*e - b*g +
 2*a*i)*Log[b + Sqrt[b^2 - 4*a*c] + 2*c*x^2])/(b^2 - 4*a*c)^(3/2))/4

_______________________________________________________________________________________

Maple [B]  time = 0.093, size = 8189, normalized size = 17.5 \[ \text{output too large to display} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  int((i*x^5+h*x^4+g*x^3+f*x^2+e*x+d)/(c*x^4+b*x^2+a)^2,x)

[Out]

result too large to display

_______________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \[ -\frac{a b c e - 2 \, a^{2} c g + a^{2} b i -{\left (b c^{2} d - 2 \, a c^{2} f + a b c h\right )} x^{3} +{\left (2 \, a c^{2} e - a b c g +{\left (a b^{2} - 2 \, a^{2} c\right )} i\right )} x^{2} +{\left (a b c f - 2 \, a^{2} c h -{\left (b^{2} c - 2 \, a c^{2}\right )} d\right )} x}{2 \,{\left (a^{2} b^{2} c - 4 \, a^{3} c^{2} +{\left (a b^{2} c^{2} - 4 \, a^{2} c^{3}\right )} x^{4} +{\left (a b^{3} c - 4 \, a^{2} b c^{2}\right )} x^{2}\right )}} + \frac{\int \frac{a b f - 2 \, a^{2} h +{\left (b c d - 2 \, a c f + a b h\right )} x^{2} +{\left (b^{2} - 6 \, a c\right )} d - 2 \,{\left (2 \, a c e - a b g + 2 \, a^{2} i\right )} x}{c x^{4} + b x^{2} + a}\,{d x}}{2 \,{\left (a b^{2} - 4 \, a^{2} c\right )}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((i*x^5 + h*x^4 + g*x^3 + f*x^2 + e*x + d)/(c*x^4 + b*x^2 + a)^2,x, algorithm="maxima")

[Out]

-1/2*(a*b*c*e - 2*a^2*c*g + a^2*b*i - (b*c^2*d - 2*a*c^2*f + a*b*c*h)*x^3 + (2*a
*c^2*e - a*b*c*g + (a*b^2 - 2*a^2*c)*i)*x^2 + (a*b*c*f - 2*a^2*c*h - (b^2*c - 2*
a*c^2)*d)*x)/(a^2*b^2*c - 4*a^3*c^2 + (a*b^2*c^2 - 4*a^2*c^3)*x^4 + (a*b^3*c - 4
*a^2*b*c^2)*x^2) + 1/2*integrate((a*b*f - 2*a^2*h + (b*c*d - 2*a*c*f + a*b*h)*x^
2 + (b^2 - 6*a*c)*d - 2*(2*a*c*e - a*b*g + 2*a^2*i)*x)/(c*x^4 + b*x^2 + a), x)/(
a*b^2 - 4*a^2*c)

_______________________________________________________________________________________

Fricas [F(-1)]  time = 0., size = 0, normalized size = 0. \[ \text{Timed out} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((i*x^5 + h*x^4 + g*x^3 + f*x^2 + e*x + d)/(c*x^4 + b*x^2 + a)^2,x, algorithm="fricas")

[Out]

Timed out

_______________________________________________________________________________________

Sympy [F(-1)]  time = 0., size = 0, normalized size = 0. \[ \text{Timed out} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((i*x**5+h*x**4+g*x**3+f*x**2+e*x+d)/(c*x**4+b*x**2+a)**2,x)

[Out]

Timed out

_______________________________________________________________________________________

GIAC/XCAS [F(-2)]  time = 0., size = 0, normalized size = 0. \[ \text{Exception raised: TypeError} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((i*x^5 + h*x^4 + g*x^3 + f*x^2 + e*x + d)/(c*x^4 + b*x^2 + a)^2,x, algorithm="giac")

[Out]

Exception raised: TypeError